﻿
namespace Com.AAS.Common.Basic
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class Working
    {
        private bool isStart = false;
        private bool isStop = true;

        public bool IsStop()
        {
            return isStop;
        }

        public bool IsStart()
        {
            return isStart;
        }

        public void ToStart()
        {
            if (!isStart)
            {
                isStart = true;
                isStop = false;
                ToRun();
            }
        }

        public void ToStop()
        {

            if (!isStop)
            {
                isStop = true;
                isStart = false;
            }
        }

        public virtual void ToRun()
        {

        }
    }
}
